<div class="dataTables_wrapper" [hidden]="autoHidden && ngbRef.pageCount == 1">
	<div><ng-content></ng-content></div>

	<div class="dataTables_paginate">
		<ng-container *ngIf="result">
			<div class="text">
				已显示 <span class="number">{{ result.list?.length }}</span> 条数据，共 {{ result.total }} 条。
			</div>
			<label for="page_size">每页显示</label>
			<input
				id="page_size"
				type="number"
				class="form-control form-control-sm"
				[value]="result.pageSize"
				[formControl]="pageSizeControl"
				(keyup.enter)="changeSize()"
			/>
		</ng-container>
		<ngb-pagination
			class="_pagination"
			[collectionSize]="length"
			[maxSize]="5"
			[pageSize]="pageSize"
			[(page)]="page"
			(pageChange)="change($event)"
			#ngbRef
		></ngb-pagination>
	</div>
</div>
